package com.ruoyi.ylyx.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 游戏账户变动对象 ylyx_accounthistory
 * 
 * @author yuexl
 * @date 2021-02-05
 */
public class YlyxAccounthistory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private String id;

    /** 用户ID */
    @Excel(name = "用户ID")
    private String userId;

    private String userAccount;

    private String userPhone;

    /** 游戏ID */
    @Excel(name = "游戏ID")
    private String gameId;

    private String gameName;

    /** 变动金额 */
    @Excel(name = "变动金额")
    private Integer accountMoney;

    /** 关联消耗ID */
    @Excel(name = "关联消耗ID")
    private String relateId;

    /** 变动类型（1充值赠送2商城购买3游戏消耗） */
    @Excel(name = "变动类型", readConverterExp = "1=充值赠送2商城购买3游戏消耗")
    private String historyType;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setUserId(String userId) 
    {
        this.userId = userId;
    }

    public String getUserId() 
    {
        return userId;
    }
    public void setGameId(String gameId) 
    {
        this.gameId = gameId;
    }

    public String getGameId() 
    {
        return gameId;
    }
    public void setAccountMoney(Integer accountMoney) 
    {
        this.accountMoney = accountMoney;
    }

    public Integer getAccountMoney() 
    {
        return accountMoney;
    }
    public void setRelateId(String relateId) 
    {
        this.relateId = relateId;
    }

    public String getRelateId() 
    {
        return relateId;
    }
    public void setHistoryType(String historyType) 
    {
        this.historyType = historyType;
    }

    public String getHistoryType() 
    {
        return historyType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("gameId", getGameId())
            .append("accountMoney", getAccountMoney())
            .append("relateId", getRelateId())
            .append("historyType", getHistoryType())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }

    public String getUserAccount() {
        return userAccount;
    }

    public void setUserAccount(String userAccount) {
        this.userAccount = userAccount;
    }

    public String getUserPhone() {
        return userPhone;
    }

    public void setUserPhone(String userPhone) {
        this.userPhone = userPhone;
    }

    public String getGameName() {
        return gameName;
    }

    public void setGameName(String gameName) {
        this.gameName = gameName;
    }
}
